<script setup lang="ts">
import { RouterLink, RouterView } from "vue-router"
import HelloWorld from "./components/HelloWorld.vue"
import zhCN from "ant-design-vue/es/locale/zh_CN"
import dayjs from "dayjs"
import "dayjs/locale/zh-cn"
dayjs.locale("zh-cn")
</script>

<template>
	<a-config-provider :locale="zhCN">
		<header>
			<div class="wrapper">
				<HelloWorld msg="You did it!" />

				<nav>
					<RouterLink to="/">Home</RouterLink>
					<RouterLink to="/about">About</RouterLink>
				</nav>
			</div>
		</header>

		<RouterView />
	</a-config-provider>
</template>
